//package org.example.ecsp.vehicle.controller;
//
//import cn.tedu.mivos.base.response.JsonResult;
//import cn.tedu.mivos.vehicle.pojo.dto.VehicleQuery;
//import cn.tedu.mivos.vehicle.pojo.dto.VehicleSaveParam;
//import cn.tedu.mivos.vehicle.pojo.vo.VehicleVO;
//import cn.tedu.mivos.vehicle.service.VehicleService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
//@RestController
//@Slf4j
//@RequestMapping("/v1/vehicle")
//public class VehicleController {
//    @Autowired
//    VehicleService vehicleService;
//    @GetMapping("select")
//    public JsonResult selectVehicle(VehicleQuery vehicleQuery){
//        log.debug("查询车辆列表信息,参数:{}",vehicleQuery);
//        List<VehicleVO> list = vehicleService.selectVehicle(vehicleQuery);
//        return JsonResult.ok(list);
//    }
//    @PostMapping("save")
//    public JsonResult saveVehicle(VehicleSaveParam vehicleSaveParam){
//        log.debug("保存车辆信息,参数:{}",vehicleSaveParam);
//        vehicleService.saveVehicle(vehicleSaveParam);
//        return JsonResult.ok();
//    }
//
//    @PostMapping("/delete/{id}")
//    public JsonResult deleteVehicle(@PathVariable Long id){
//        log.debug("删除车辆信息,参数:{}",id);
//        vehicleService.deleteVehicle(id);
//        return JsonResult.ok();
//    }
//    @PostMapping("/unbind/{id}")
//    public JsonResult unbindVehicle(@PathVariable Long id){
//        log.debug("解绑车辆信息,参数:{}",id);
//        vehicleService.unbindVehicle(id);
//        return JsonResult.ok();
//    }
//    @PostMapping("/bind/{geofenceId}/{vehicleId}")
//    public JsonResult bindVehicle(@PathVariable Long geofenceId,@PathVariable Long vehicleId){
//        log.debug("绑定车辆信息,参数:{}",geofenceId+" "+vehicleId);
//        vehicleService.bindVehicle(geofenceId,vehicleId);
//        return JsonResult.ok();
//    }
//}
